package com.ruoyi.project.mall.service.impl;


import com.ruoyi.common.utils.bootdo.R;
import com.ruoyi.project.mall.dao.MallShopTypeDao;
import com.ruoyi.project.mall.domain.MallShopTypeDO;
import com.ruoyi.project.mall.service.MallShopTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class MallShopTypeServiceImpl implements MallShopTypeService {
	@Autowired
	private MallShopTypeDao mallShopTypeDao;
	
	@Override
	public MallShopTypeDO get(String id){
		return mallShopTypeDao.get(id);
	}
	
	@Override
	public List<MallShopTypeDO> list(Map<String, Object> map){
		return mallShopTypeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return mallShopTypeDao.count(map);
	}
	
	@Override
	public int save(MallShopTypeDO mallShopType){
		return mallShopTypeDao.save(mallShopType);
	}
	
	@Override
	public int update(MallShopTypeDO mallShopType){
		return mallShopTypeDao.update(mallShopType);
	}
	
	@Override
	public int remove(String id){
		return mallShopTypeDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return mallShopTypeDao.batchRemove(ids);
	}

    @Override
    public List<MallShopTypeDO> likeList(Map<String, Object> map){
        return mallShopTypeDao.likeList(map);
    }
    @Override
    public int likeListCount(Map<String, Object> map){
        return mallShopTypeDao.likeListCount(map);
    }

    @Override
    public R getShopType(Map<String, Object> params) {
		params.put("delFlag","0");
		params.put("sort","location");
		params.put("order","asc");
		List<MallShopTypeDO> list = mallShopTypeDao.list(params);
		return R.ok().put("data",list);

	}

}
